package com.tnxst.phexamination.public_health_docking_interface;

import com.tnxst.phexamination.constant.Trade;
import com.tnxst.phexamination.utils.StringUtils;
import com.tnxst.phexamination.utils.WebServiceUtils;

import java.util.List;
import java.util.Map;

public class DoctorInterface {


    /**
     *  53-3 查询医务人员列表
     * @param orgId
     * @param keyValue
     * @param pageSize
     * @param pageIndex
     * @param response
     */
    public static void queryMedicalStaffList(String orgId, String keyValue,Integer pageSize,
                                             Integer pageIndex, WebServiceUtils.Response<List> response){
        String trade = Trade.MEDICAL_STAFF.QUERY_MEDICAL_STAFF_LIST;
        Map<String, Object> data = StringUtils.getDataMap();
        if (StringUtils.isNotNull(orgId))
            data.put("OrgID",orgId);
        if (StringUtils.isNotNull(keyValue))
            data.put("KeyValue",keyValue);
        data.put("PageSize", pageSize);
        data.put("PageIndex",pageIndex);
        WebServiceUtils.call(trade,data,response);

    }

    /**
     * 53-4 查询医务人员信息(通过doctorid)
     * @param doctorId
     * @param response
     */
    public static void queryMedicalStaffByDoctorId(String doctorId, WebServiceUtils.Response response){
        String trade = Trade.MEDICAL_STAFF.QUERY_MEDICAL_STAFF_BY_DOCTOR_ID;
        Map<String, Object> dataMap = StringUtils.getDataMap();
        dataMap.put("DoctorID",doctorId);
        WebServiceUtils.call(trade,dataMap,response);
    }


}
